<template>
  <el-dialog title="查看"
             v-model="visible"
             @close="close"
             :close-on-click-modal="false"
             width="1000px">
    <el-descriptions title="客户信息" :column="4" border>
      <template #extra>
        <el-button type="primary" disabled>修改</el-button>
      </template>
      <el-descriptions-item label="卡号">
        <span v-text="info.ucard"/>
      </el-descriptions-item>
      <el-descriptions-item label="手机号">
        <span v-text="info.phone"/>
      </el-descriptions-item>
      <el-descriptions-item label="姓名">
        <span v-text="info.username || '-'"/>
      </el-descriptions-item>
      <el-descriptions-item label="性别">
        <el-tag  v-text="Dic.sexType(info.sex)"/>
      </el-descriptions-item>
      <el-descriptions-item label="注册时间">
        <span v-text="Dic.Date(info.addtime)"/>
      </el-descriptions-item>
      <el-descriptions-item label="积分">
        <span v-text="info.upoints"/>
      </el-descriptions-item>
      <el-descriptions-item label="余额">
        <span v-text="Dic.Price(info.wuprice)"/>
      </el-descriptions-item>
      <el-descriptions-item label="消费">
        <span v-text="Dic.Price(info.xiaofei)"/>
      </el-descriptions-item>
      <el-descriptions-item label="会员类型">
        <el-tag v-text="Dic.memberType(info.isHy)"/>
      </el-descriptions-item>
      <el-descriptions-item label="送货地址">
        <span v-text="info.address"/>
      </el-descriptions-item>
    </el-descriptions>
    ...待续
  </el-dialog>
</template>

<script lang="ts">
import Dic from "@/utils/dic"

export default {
  name: "memberListDetail",
  props: {
    modelValue: {},
    info: {},
    close: {
      type: Function,
    }
  },
  data() {
    return {
      Dic,
      visible: false,
    };
  },
  watch: {
    modelValue(value) {
      console.log(this.info)
      this.visible = value
    },
  },
  created() {
  },
  methods: {}
}
</script>
<style lang="scss" scoped>
.cell-item {
  display: flex;
  align-items: center;
}
</style>